package puzzle.core.tiles;

import org.newdawn.slick.Color;
import org.newdawn.slick.Image;
import puzzle.core.Direction;
import puzzle.core.TileType;
import puzzle.core.tiles.DirectionalImageTile;

public class PortTile extends DirectionalImageTile {
  
  protected int lx=0, ly=0;
  protected Direction ld = Direction.UP;
  
  public PortTile(Direction dir, Image i, Color c) {
    super(TileType.PORT, dir, i, c);
  }
  
  public PortTile(Direction dir, Image i) {
    this(dir, i, null);
  }
  
  public int getLinkX() {
    return lx;
  }
  
  public int getLinkY() {
    return ly;
  }
  
  public void setLinkDirection(Direction d) {
    ld = d;
  }
  
  public Direction getLinkDirection() {
    return ld;
  }
  
  public void setLinkAt(int x, int y) {
    this.lx = x;
    this.ly = y;
  }
}
